package com.ljn.core.dto.common.utils.assmbler;

import com.ljn.core.dto.Relation;
import com.ljn.core.dto.common.command.projectcommand.ProCommand;

/**
 * Created by liujunnan on 2017/11/15.
 */
public class RelationAssmbler {
    public static Relation toRelation(ProCommand proCommand)
    {
        Relation relation = new Relation();
        relation.setProject(proCommand.getName());
        relation.setLaunch(proCommand.getContact());
        relation.setReceive(proCommand.getCurrentUserName());
        return  relation;
    }
}
